FROM #docker.host#/connext/openjdk:8-jre-alpine

# Add OpenSSH
# RUN apk update && apk add openssh

ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
    SPRING_PROFILES_ACTIVE="prod" \
    JAVA_OPTS="" \
    SPRING_OPTS=""

# add directly the jar
ADD *.jar /service-app.jar

EXPOSE 8081

CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /service-app.jar \
    --spring.profiles.active=${SPRING_PROFILES_ACTIVE} ${SPRING_OPTS}
